package indi.zhang.nacosweb.strategys.impl;

import indi.zhang.common.branchs.Handle;
import indi.zhang.nacosweb.strategys.TestHandleContext;
import indi.zhang.nacosweb.strategys.enums.Test;
import org.springframework.stereotype.Service;

@Service("twoTestHandle")
public class BHandleImpl implements Handle<String, String> {
    @Override
    public String execute(String s) {
        return TestHandleContext.b.apply(s);
    }

    @Override
    public boolean accpet(String s) {
        return Test.B.getValue().equals(s);
    }
}
